package com.mark.basic.util;

import lombok.Data;

@Data
public class AjaxResult {
    public Boolean success = new Boolean(true);
    public String message = "操作成功";
    public Object resultObj;
    public static AjaxResult me(){
        return new AjaxResult();
    }

    public AjaxResult setSuccess(Boolean success) {
        this.success = success;
        return this;
    }

    public AjaxResult setMassage(String message) {
        this.message = message;
        return this;
    }
    public AjaxResult setResultObj(Object resultObj) {
        this.resultObj = resultObj;
        return this;
    }

}